package edu.sctu.zhuyingzhi.month201505.day20150504.exception.exceptionExc;
import java.util.Scanner;
/**
 * Created by user13 on 2015/5/4.
 */
public class Count {
    public static void main(String[] args) {
        Scanner  in=new Scanner(System.in);
        int x,y;

        System.out.println("please enter value for the x:");

        x=in.nextInt();
        y=0;

        new Method().Plus(x, y);
        new Method().Reduction(x, y);
        new Method().Take(x, y);
        try {
            new Method().Addition(x, y);
            throw new ArithmeticException();
        }catch (ArithmeticException e)
        {
            System.out.println("异常被捕捉");
        }
    }
}
